﻿using App.Entity;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace App.IServices
{
    public interface IDutyServices
    {
        /// <summary>
        /// 获取角色集合
        /// </summary>
        /// <param name="keyword">岗位名称</param>
        List<Sys_Role> GetList(string keyword = "");

        /// <summary>
        /// 根据Id获取实体
        /// </summary>
        Sys_Role GetForm(string keyValue);

        /// <summary>
        /// 添加/修改角色
        /// </summary>
        void SubmitForm(Sys_Role roleEntity, string keyValue);

        /// <summary>
        /// 删除
        /// </summary>
        /// <param name="keyValue"></param>
        void DeleteForm(string keyValue);
    }
}
